Optimal. Leaf size=165 \[ -\frac {b n}{9 d x^3}+\frac {b e n}{d^2 x}-\frac {a+b \log \left (c x^n\right )}{3 d x^3}+\frac {e \left (a+b \log \left (c x^n\right )\right )}{d^2 x}+\frac {e^{3/2} \tan ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d}}\right ) \left (a+b \log \left (c x^n\right )\right )}{d^{5/2}}-\frac {i b e^{3/2} n \text {Li}_2\left (-\frac {i \sqrt {e} x}{\sqrt {d}}\right )}{2 d^{5/2}}+\frac {i b e^{3/2} n \text {Li}_2\left (\frac {i \sqrt {e} x}{\sqrt {d}}\right )}{2 d^{5/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.16, antiderivative size = 165, normalized size of antiderivative = 1.00, number of steps
used = 9, number of rules used = 7, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.304, Rules used = {2380, 2341,
211, 2361, 12, 4940, 2438} \begin {gather*} -\frac {i b e^{3/2} n \text {PolyLog}\left (2,-\frac {i \sqrt {e} x}{\sqrt {d}}\right )}{2 d^{5/2}}+\frac {i b e^{3/2} n \text {PolyLog}\left (2,\frac {i \sqrt {e} x}{\sqrt {d}}\right )}{2 d^{5/2}}+\frac {e^{3/2} \text {ArcTan}\left (\frac {\sqrt {e} x}{\sqrt {d}}\right ) \left (a+b \log \left (c x^n\right )\right )}{d^{5/2}}+\frac {e \left (a+b \log \left (c x^n\right )\right )}{d^2 x}-\frac {a+b \log \left (c x^n\right )}{3 d x^3}+\frac {b e n}{d^2 x}-\frac {b n}{9 d x^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 211
Rule 2341
Rule 2361
Rule 2380
Rule 2438
Rule 4940
Rubi steps
\begin {align*} \int \frac {a+b \log \left (c x^n\right )}{x^4 \left (d+e x^2\right )} \, dx &=\int \left (\frac {a+b \log \left (c x^n\right )}{d x^4}-\frac {e \left (a+b \log \left (c x^n\right )\right )}{d^2 x^2}+\frac {e^2 \left (a+b \log \left (c x^n\right )\right )}{d^2 \left (d+e x^2\right )}\right ) \, dx\\ &=\frac {\int \frac {a+b \log \left (c x^n\right )}{x^4} \, dx}{d}-\frac {e \int \frac {a+b \log \left (c x^n\right )}{x^2} \, dx}{d^2}+\frac {e^2 \int \frac {a+b \log \left (c x^n\right )}{d+e x^2} \, dx}{d^2}\\ &=-\frac {b n}{9 d x^3}+\frac {b e n}{d^2 x}-\frac {a+b \log \left (c x^n\right )}{3 d x^3}+\frac {e \left (a+b \log \left (c x^n\right )\right )}{d^2 x}+\frac {e^{3/2} \tan ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d}}\right ) \left (a+b \log \left (c x^n\right )\right )}{d^{5/2}}-\frac {\left (b e^2 n\right ) \int \frac {\tan ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d}}\right )}{\sqrt {d} \sqrt {e} x} \, dx}{d^2}\\ &=-\frac {b n}{9 d x^3}+\frac {b e n}{d^2 x}-\frac {a+b \log \left (c x^n\right )}{3 d x^3}+\frac {e \left (a+b \log \left (c x^n\right )\right )}{d^2 x}+\frac {e^{3/2} \tan ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d}}\right ) \left (a+b \log \left (c x^n\right )\right )}{d^{5/2}}-\frac {\left (b e^{3/2} n\right ) \int \frac {\tan ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d}}\right )}{x} \, dx}{d^{5/2}}\\ &=-\frac {b n}{9 d x^3}+\frac {b e n}{d^2 x}-\frac {a+b \log \left (c x^n\right )}{3 d x^3}+\frac {e \left (a+b \log \left (c x^n\right )\right )}{d^2 x}+\frac {e^{3/2} \tan ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d}}\right ) \left (a+b \log \left (c x^n\right )\right )}{d^{5/2}}-\frac {\left (i b e^{3/2} n\right ) \int \frac {\log \left (1-\frac {i \sqrt {e} x}{\sqrt {d}}\right )}{x} \, dx}{2 d^{5/2}}+\frac {\left (i b e^{3/2} n\right ) \int \frac {\log \left (1+\frac {i \sqrt {e} x}{\sqrt {d}}\right )}{x} \, dx}{2 d^{5/2}}\\ &=-\frac {b n}{9 d x^3}+\frac {b e n}{d^2 x}-\frac {a+b \log \left (c x^n\right )}{3 d x^3}+\frac {e \left (a+b \log \left (c x^n\right )\right )}{d^2 x}+\frac {e^{3/2} \tan ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d}}\right ) \left (a+b \log \left (c x^n\right )\right )}{d^{5/2}}-\frac {i b e^{3/2} n \text {Li}_2\left (-\frac {i \sqrt {e} x}{\sqrt {d}}\right )}{2 d^{5/2}}+\frac {i b e^{3/2} n \text {Li}_2\left (\frac {i \sqrt {e} x}{\sqrt {d}}\right )}{2 d^{5/2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.13, size = 211, normalized size = 1.28 \begin {gather*} \frac {1}{18} \left (-\frac {2 b n}{d x^3}+\frac {18 b e n}{d^2 x}-\frac {6 \left (a+b \log \left (c x^n\right )\right )}{d x^3}+\frac {18 e \left (a+b \log \left (c x^n\right )\right )}{d^2 x}-\frac {9 e^{3/2} \left (a+b \log \left (c x^n\right )\right ) \log \left (1+\frac {\sqrt {e} x}{\sqrt {-d}}\right )}{(-d)^{5/2}}+\frac {9 e^{3/2} \left (a+b \log \left (c x^n\right )\right ) \log \left (1+\frac {d \sqrt {e} x}{(-d)^{3/2}}\right )}{(-d)^{5/2}}+\frac {9 b e^{3/2} n \text {Li}_2\left (\frac {\sqrt {e} x}{\sqrt {-d}}\right )}{(-d)^{5/2}}-\frac {9 b e^{3/2} n \text {Li}_2\left (\frac {d \sqrt {e} x}{(-d)^{3/2}}\right )}{(-d)^{5/2}}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 9 vs. order
4.
time = 0.12, size = 706, normalized size = 4.28
method | result | size |
risch | \(-\frac {b \ln \left (c \right )}{3 d \,x^{3}}-\frac {i b \pi \mathrm {csgn}\left (i c \,x^{n}\right )^{3} e}{2 d^{2} x}+\frac {i b \pi \,\mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2} e}{2 d^{2} x}+\frac {i b \pi \,\mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2} e}{2 d^{2} x}+\frac {b \,e^{2} \arctan \left (\frac {x e}{\sqrt {e d}}\right ) \ln \left (x^{n}\right )}{d^{2} \sqrt {e d}}-\frac {a}{3 d \,x^{3}}+\frac {a e}{d^{2} x}-\frac {b \,e^{2} \arctan \left (\frac {x e}{\sqrt {e d}}\right ) n \ln \left (x \right )}{d^{2} \sqrt {e d}}+\frac {b n \,e^{2} \ln \left (x \right ) \ln \left (\frac {-e x +\sqrt {-e d}}{\sqrt {-e d}}\right )}{2 d^{2} \sqrt {-e d}}-\frac {b n \,e^{2} \ln \left (x \right ) \ln \left (\frac {e x +\sqrt {-e d}}{\sqrt {-e d}}\right )}{2 d^{2} \sqrt {-e d}}+\frac {b \ln \left (x^{n}\right ) e}{d^{2} x}+\frac {b \ln \left (c \right ) e^{2} \arctan \left (\frac {x e}{\sqrt {e d}}\right )}{d^{2} \sqrt {e d}}+\frac {i b \pi \mathrm {csgn}\left (i c \,x^{n}\right )^{3}}{6 d \,x^{3}}+\frac {a \,e^{2} \arctan \left (\frac {x e}{\sqrt {e d}}\right )}{d^{2} \sqrt {e d}}-\frac {i b \pi \,\mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2}}{6 d \,x^{3}}-\frac {i b \pi \,\mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2}}{6 d \,x^{3}}-\frac {b \ln \left (x^{n}\right )}{3 d \,x^{3}}-\frac {i b \pi \,\mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right ) e}{2 d^{2} x}+\frac {b \ln \left (c \right ) e}{d^{2} x}+\frac {i b \pi \,\mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )}{6 d \,x^{3}}-\frac {i b \pi \mathrm {csgn}\left (i c \,x^{n}\right )^{3} e^{2} \arctan \left (\frac {x e}{\sqrt {e d}}\right )}{2 d^{2} \sqrt {e d}}+\frac {b n \,e^{2} \dilog \left (\frac {-e x +\sqrt {-e d}}{\sqrt {-e d}}\right )}{2 d^{2} \sqrt {-e d}}-\frac {b n \,e^{2} \dilog \left (\frac {e x +\sqrt {-e d}}{\sqrt {-e d}}\right )}{2 d^{2} \sqrt {-e d}}+\frac {b e n}{d^{2} x}-\frac {b n}{9 d \,x^{3}}+\frac {i b \pi \,\mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2} e^{2} \arctan \left (\frac {x e}{\sqrt {e d}}\right )}{2 d^{2} \sqrt {e d}}+\frac {i b \pi \,\mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2} e^{2} \arctan \left (\frac {x e}{\sqrt {e d}}\right )}{2 d^{2} \sqrt {e d}}-\frac {i b \pi \,\mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right ) e^{2} \arctan \left (\frac {x e}{\sqrt {e d}}\right )}{2 d^{2} \sqrt {e d}}\) | \(706\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {a + b \log {\left (c x^{n} \right )}}{x^{4} \left (d + e x^{2}\right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {a+b\,\ln \left (c\,x^n\right )}{x^4\,\left (e\,x^2+d\right )} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________